

package com.kimo.shop.user.comment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kimo.shop.bean.model.Order;
import com.kimo.shop.user.comment.dto.ScoreOrderMergerDto;

/**
 * @author kimo-taozhouchuan
 * @date 2019-08-27 17:55:57
 */
public interface ScoreOrderService extends IService<Order> {



    /**
     * 将确认订单的信息放入缓存
     */
    ScoreOrderMergerDto putConfirmScoreOrderCache(String userId, ScoreOrderMergerDto scoreOrderMergerDto);


    /**
     * 获取缓存中确认订单的信息
     */
    ScoreOrderMergerDto getConfirmScoreOrderCache(String userId);

    /**
     * 移除缓存中确认订单的信息
     */
    void removeConfirmScoreOrderCache(String userId);

    /**
     * 提交订单
     */
    Order submit(String userId, ScoreOrderMergerDto hadConfirmOrder);

}
